﻿using Newtonsoft.Json;

namespace AdminBase.Model
{
    /// <summary>
    /// 部门树形数据模型类
    /// </summary>
    public class DepartmentsTree
    {
        /// <summary>
        /// 部门ID
        /// </summary>
        [JsonProperty("id")]
        public long ID { get; set; }

        /// <summary>
        /// 文本
        [JsonProperty("label")]
        /// </summary>
        public string Label { get; set; }

        /// <summary>
        /// 部门名
        /// </summary>
        [JsonProperty("name")]
        public string Name { get; set; }

        /// <summary>
        /// 父级ID
        /// </summary>
        [JsonProperty("parentID")]
        public long? ParentID { get; set; }

        /// <summary>
        /// 子级
        /// </summary>
        [JsonProperty("children")]
        public List<DepartmentsTree> Children { get; set; }
    }
}
